<template>
  <div>
    <van-nav-bar
      :title="title"
      left-arrow 
      @click-left="onClickLeft"
      class="vant_search"
    />
  </div>
</template>

<script>
export default {
  props:['title'],
  setup() {
    const onClickLeft = () => history.back();
    return {
      onClickLeft,
    };
  },
};
</script>

<style>

.vant_search{
   /* background-color: green; */
  width: 100%;
  position: fixed;
  height: 46px;
  top: 0;
  z-index: 99;
}
</style>